package cn.iocoder.yudao.module.project.controller.admin.info.vo;

import cn.iocoder.yudao.module.project.framework.operatelog.core.ConstructionUnitParseFunction;
import com.mzt.logapi.starter.annotation.DiffLogField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 项目信息新增/修改 Request VO")
@Data
public class InfoSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23511")
    private Long id;

    @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "项目名称不能为空")
    private String name;

    @Schema(description = "描述", example = "你说的对")
    private String description;

    @Schema(description = "项目状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "项目状态不能为空")
    private Integer status;

//    @Schema(description = "施工单位编号数组")
//    private String constructionUnitIds;

    @Schema(description = "施工单位编号数组", example = "1")
    @DiffLogField(name = "施工单位", function = ConstructionUnitParseFunction.NAME)
    private Set<Long> constructionUnitIds;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}